package com.weds.edwx.service;

import com.weds.core.base.BaseService;
import com.weds.edwx.entity.*;
import com.weds.edwx.mapper.HairCutMapper;
import com.weds.edwx.mapper.HealthMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author sjm
 * @Description 理发管理
 * @Date 2020-02-24
 */
@Service
public class HealthService extends BaseService {

    @Autowired
    private HealthMapper healthMapper;


    /**
     *预约记录
     */
    public List<HealthTitleInfoRecordEntity> getTitleInfo(Integer userSerial){
        return healthMapper.getTitleInfo(userSerial);
    }

    public List<HealthMainInfoRecordEntity> getMainList(Integer userSerial){
        return healthMapper.getMainList(userSerial);
    }

    public HealthMsgInfoRecordEntity getMsgInfo(HealthMsgReq record){
        return healthMapper.getMsgInfo(record);
    }


}
